package com.qfedu.common.core.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateUtils {

    /**
     * 根据LocalDate进行格式化操作
     *
     * @param localDate
     * @param format
     * @return
     */
    public static String formatLocalData(LocalDate localDate, String format) {
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(format);
        return dateTimeFormatter.format(localDate);
    }
}
